<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,minimum-scale=1.0, maximum-scale=1.0,user-scalable=no">
    <title>vue chat</title>
    <script src="static/js/js/message.js"></script>

    <script src="static/js/js/replybody.js"></script>
    <script src="static/js/js/sentbody.js"></script>
    <script src="static/js/cim.web.sdk.js"></script>
<script>
  CIMPushManager.connect();
  /** 当收到请求回复时候回调  **/
  function onReplyReceived(reply)
  {
    console.log(reply);

  }
  function onMessageReceived(data) {
    // console.log(data);
    // return Promise.resolve(data);
    window.received(data)
  }
  /**  当socket连接成功回调 **/
  function onConnectFinished(){
    CIMPushManager.bindAccount("222");
  }
</script>


  </head>
  <body>
    <div id="app"></div>
  </body>
</html>
